package com.hspedu.homework.homework05;

public class HomeWork05 {
    public static void main(String[] args) {

        Staff jack = new Staff("jack", 1000);
        jack.printSal();

        Peasant smith = new Peasant("smith", 1000);
        smith.printSal();

        Waiter peter = new Waiter("peter", 1000);
        peter.printSal();

        Teacher lisa = new Teacher("lisa", 10000, 200);
        lisa.printSal();

        Scientist rose = new Scientist("rose", 10000, 100000);
        rose.printSal();

    }

}
